package cn.swust.designpatternlearningplatform.common.exception;


import cn.swust.designpatternlearningplatform.domain.enums.ResponseDataEnum;

public class BaseException extends RuntimeException{

    protected ResponseDataEnum responseDataEnum;

    public BaseException(){
        super();
    }

    public BaseException(String msg){
        super(msg);
    }

    public BaseException(ResponseDataEnum responseDataEnum){
        super(responseDataEnum.getMsg());
        this.responseDataEnum = responseDataEnum;
    }

    public ResponseDataEnum getResponseDataEnum(){
        return this.responseDataEnum;
    }

}
